import React from 'react';
import { View,Text } from 'react-native';
import Button from '@/c/Button'
import { observer } from 'mobx-react-lite';
import { useStores } from '../../store';
import { useNavigation } from '@react-navigation/native';
const StoreTest = observer(() => {
  const { counterStore } = useStores()
  const { counter, increment } = counterStore
  const navigation = useNavigation()
  return (
    <>
      <View>
        <Text>{counter}</Text>
        <Text onPress={() => navigation.navigate('Home')}>点我</Text>
        <Button></Button>
      </View>
    </>
  )
})



export default StoreTest;
